﻿<%@ Page Title="Trang Quản trị" Language="C#" MasterPageFile="~/Manager.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Manager.Default" %>
<%@ Register Assembly="CKFinder" Namespace="CKFinder" TagPrefix="CKFinder" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">

        function BrowseServer() {
            // You can use the "CKFinder" class to render CKFinder in a page:
            var finder = new CKFinder();
            finder.basePath = '../'; // The path for the installation of CKFinder (default = "/ckfinder/").
            finder.selectActionFunction = SetFileField;
            finder.popup();

            // It can also be done in a single line, calling the "static"
            // popup( basePath, width, height, selectFunction ) function:
            // CKFinder.popup( '../', null, null, SetFileField ) ;
            //
            // The "popup" function can also accept an object as the only argument.
            // CKFinder.popup( { basePath : '../', selectActionFunction : SetFileField } ) ;
        }

        // This is a sample function which is called when a file is selected in CKFinder.
        function SetFileField(fileUrl) {
            document.getElementById('contentPage_hiddenImg').value = fileUrl;
            document.getElementById('thumbnails').innerHTML +=
			'<div>' +
				'<img src="' + fileUrl + '" style="width: 60px; height: 60px;" />' +
			'</div>';

            document.getElementById('preview').style.display = "";
            document.getElementById('image').style.display = "none";
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPage" runat="server">
<div class="breadcrumb">
        <a href="Default.aspx">Trang quản trị</a>
        </div>
        <div class="box">
    <div class="heading">
      <h1><img alt="" src="Styles/Img/home.png" />Trang quản trị</h1>
    </div>
     <div class="content">
      <div class="overview">   
       <div class="dashboard-content" style="width: 350px;">
        <table border="0" cellspacing="0" cellpadding="0">
        	<tr>
        		<td>
                    <div class="item">
                        <a href="AddNews.aspx">
                                    <img src="Styles/Icon/icon-48-article-add.png" alt="" /><br />
                                    Bài viết mới
                                    </a>
                    </div>
                </td>
        		<td>
                    <div class="item">
                        <a href="NewsManager.aspx">
                                    <img src="Styles/Icon/icon-48-article.png" alt="" /><br />
                                    Quản lý Bài viết
                                    </a>
                    </div>
                </td>
        		<td>
                    <div class="item">
                        <asp:HyperLink ID="linkViewUser" runat="server">
                                    <img src="Styles/Icon/icon-48-user-profile.png" alt="" /><br />
                                    Thông tin cá nhân
                         </asp:HyperLink>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="item">
                        <a href="ServiceManager.aspx">
                                    <img src="Styles/Icon/icon-48-article.png" alt="" /><br />
                                    Quản lý Dịch vụ
                                    </a>
                    </div>
                </td>
        		<td>
                    <div class="item">
                        <asp:LinkButton ID="lbtMedia" OnClientClick="BrowseServer();" runat="server">
                                    <img src="Styles/Icon/icon-48-media.png" alt="" /><br />
                                    Quản lý Ảnh
                                    </asp:LinkButton>
                    </div>
                </td>
        		<td>
                    <div class="item">
                        <a href="#">
                                    <img src="Styles/Icon/icon-messaging.png" alt="" /><br />
                                    Tin nhắn
                                    </a>
                    </div>
                </td>
        	</tr>
        	<tr id="trAdmin">
        		<td>
                    <div class="item" id="divCat" runat="server">
                        <a href="ServicePrice.aspx">
                                    <img src="Styles/Icon/icon-48-category.png" alt="" /><br />
                                    Quản lý giá
                                    </a>
                    </div>
                </td>
        		<td>
                    <div class="item" id="divUser" runat="server">
                        <a href="UserManager.aspx">
                                    <img src="Styles/Icon/icon-48-user.png" alt="" /><br />
                                    Quản lý Thành viên
                                    </a>
                    </div>
                </td>
        		<td>
                    <div class="item" id="divConfig" runat="server">
                        <a href="Setting.aspx">
                                    <img src="Styles/Icon/icon-48-config.png" alt="" /><br />
                                    Cài đặt
                                    </a>
                    </div>
                </td>
        	</tr>
            <tr><td>&nbsp;</td></tr>
        </table>
      </div>
      </div>
      </div>
      </div>
</asp:Content>
